package cn.hpclub.server.model.promotion;

import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Model;

/**
 * @FileName: Promotion.java
 * @Author zhl
 * @Description:首页弹窗信息数据实体类
 * @Date 2016年6月27日 下午2:38:57
 * @CopyRight ZTE Corporation
 */
@TableBind(tableName = "home_page_promotion")
public class Promotion extends Model<Promotion>{

    private static final long     serialVersionUID = -3719228852670785884L;
    public static final Promotion dao              = new Promotion();
    /**
     * 主键Id，自增长
     */
    public static String          ID               = "id";
    /**
     * 名称
     */
    public static String          NAME             = "name";
    /**
     * 图片url
     */
    public static String          IMG              = "img";
    /**
     * 所属机构Id
     */
    public static String          ORG_ID           = "org_id";
    /**
     * 点击跳转链接
     */
    public static String          URL              = "url";
    /**
     * 开始时间
     */
    public static String          START_TIME       = "start_time";
    /**
     * 结束时间
     */
    public static String          END_TIME         = "end_time";
    /**
     * 是否发布，发布：suance；不发布：unsuance
     */
    public static String          ISSUANCE         = "issuance";
    /**
     * 创建者Id
     */
    public static String          CREATOR          = "creator";
    /**
     * 创建时间
     */
    public static String          CREATE_TIME      = "create_time";
    /**
     * 最后修改人Id
     */
    public static String          LAST_MODIFY_ID   = "last_modify_id";
    /**
     * 最后修改时间
     */
    public static String          LAST_MODIFY_TIME = "last_modify_time";
    /**
     * 是否删除 0：正常; 1：已删除
     */
    public static String          ISDELETE         = "isdelete";

    public static String          USER_NAME        = "user_name";

    public enum Suance{

            suance, // 发布

            unsuance// 不发布
    }
}
